<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>判定成绩</title>
</head>
<body>
    <script src="vue.js"></script>
    <div id="test1">
        <div id="test2">
            <input type="" v-on:keyup.13="sscore" id="test3" value="" />
            <div v-if="score>=90">
                张三的成绩优秀
            </div>
            <div v-else-if="score>=80">
                张三的成绩良好
            </div>
            <div v-else-if="score>=60">
                张三的成绩及格
            </div>
            <div v-else>
                张三的成绩不及格
            </div>
        </div>
    </div>
</body>
<script>
var app=new Vue({
    el:"#test1",
    data:{
        score:"",
    },
    methods:{
        sscore(){
            this.score=event.target.value;
        }
    }
})
</script>
</html>